<?php

namespace App\Containers\AppSection\Project\UI\API\Transformers;

use App\Containers\AppSection\Project\Models\Analytic;
use App\Ship\Parents\Transformers\Transformer;

class AnalyticTransformer extends Transformer
{
    public function transform(Analytic $t): array
    {
        return [
            'object' => $t->getResourceKey(),
            'include' => $this->getAvailableIncludes(),
            'id' => $t->getHashedKey(),
            'credit_history' => $t->credit_history,
            'suspension' => $t->suspension,
            'balance' => $t->balance,
            'revenue' => $t->revenue,
            'net_profit' => $t->net_profit,
            'nds' => $t->nds,
            'contributions' => $t->contributions,
            'total_paid' => $t->total_paid,
            'debt' => $t->debt,
            'entries_egrul' => $t->entries_egrul,
            'arbitration_cases' => $t->arbitration_cases,
            'execution_proceedings' => $t->execution_proceedings,
            'availability_lists' => $t->availability_lists,
            'government_purchases' => $t->government_purchases,
        ];
    }
}
